package com.evan.uyclub.Other;

import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.bumptech.glide.Glide;
import com.evan.uyclub.R;

public class MyData extends AppCompatActivity {
    private SharedPreferences data;
    private TextView users;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_edit);
        //vpn检测
        VPNActivity vpnActivity = new VPNActivity(this);
        ImageView icon = (ImageView) findViewById(R.id.icon);
        users = findViewById(R.id.email);
        users.setTypeface(Typeface.createFromAsset(this.getAssets(), "rubik.ttf"));
        Intent intent = getIntent();
        String user = intent.getStringExtra("user");
        users.setText(user);
        Glide.with(this).load("http://q1.qlogo.cn/g?b=qq&nk=" + user + "&s=640").into(icon);
        // 关闭页面
        ImageView click_back = findViewById(R.id.back);
        click_back.setOnClickListener(v -> {
            finish();
        });
    }
}
